import org.hibernate.Session;

import com.deividnn.sistema.vendas.HibernateUtil;


public class Conecta {
	public static void main(String[] args){
		
		Session sessao=null;
		
		try{
			sessao=HibernateUtil.getSession().openSession();
			System.out.print("conectou");
			
		}finally{
			sessao.close();
			System.out.print("\nfechou conexao");
		}
		
		
	}

}
